import logging
import logging.config

"""
Define the loggers to be used
"""

#general logging to stderr
logger = logging.getLogger("general")
logger.setLevel(logging.DEBUG)
sh = logging.StreamHandler()
sh.setLevel(logging.DEBUG)
formatter = logging.Formatter("%(asctime)s - %(levelname)s - %(message)s")
sh.setFormatter(formatter)
logger.addHandler(sh)

#logging to a mapping.log file
mapping_logger = logging.getLogger("file")
mapping_logger.setLevel(logging.DEBUG)
#TODO for portability, change how we handle the path
fh = logging.FileHandler("../log/mapping.log", "a")
fh.setLevel(logging.DEBUG)
formatter = logging.Formatter("%(message)s")
fh.setFormatter(formatter)
mapping_logger.addHandler(fh)
